package com.xiaoke.mapper;

import com.xiaoke.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

@Mapper
public interface CategoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> findBrotherCategory(@Param("parentId") Integer parentId,@Param("currentId") Integer currentId);

    List<Category> findByParentId(Integer parentId);

    List<Category> findListByShop(String shopId);
}